home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / String Rotation / GetRotatedStringBitmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-08  |  623 b   |  27 lines  |  [TEXT/R*ch]

  1. /***
  2.  
  3.     GetRotatedStringBitmap
  4.     
  5.     By Guy Fullerton (hedgeboy@kagi.com)
  6.     
  7.     This function takes a pascal string, rotates it 90 degrees in the desired
  8.     direction and passes back a BitMap of the rotated string image.
  9.     
  10.     It is based upon some Apple sample source code called RotateString.  The
  11.     Apple code left some unsightly pixels along the edges of the BitMap,
  12.     so I fixed it.
  13.     
  14.     You are free to use this any way you like.
  15.  
  16. ***/
  17.  
  18. typedef enum {
  19.     rotationDirection_ClockWise,
  20.     rotationDirection_CounterClockWise
  21. } RotationDirection;
  22.  
  23. OSErr GetRotatedStringBitmap( Str255 str, BitMap *destMap,
  24.     RotationDirection direction );
  25.  
  26.  
  27.